﻿using Microsoft.Xna.Framework.Graphics;
using System.Collections;

namespace MyNezGame.Scenes;

public class MainScene : Scene
{
    #region ctors

    public MainScene()
    {
        ClearColor = Color.Black;
    }

    #endregion

    #region lifecycle
    public override void Initialize()
    {
        base.Initialize();

        //var texture = Content.Load<Texture2D>(@"G:\fanbalcode\MyNezTemplate\MyNezGame\Contents\logo.jpeg");
        //var greeter = CreateEntity("greeter")
        //             .AddComponent(new TextComponent(null, text: "hello, world!", Vector2Ext.Left * 10, Color.White));
        //greeter.LocalOffset = new Vector2(100, 100); 
        //greeter.Transform.TweenLocalRotationDegreesTo(100).SetEaseType( Nez.Tweens.EaseType.BackIn).Start();

        Core.StartCoroutine(GetMyList());
    }
    #endregion

    #region test

    /// <summary>
    /// GetMyList
    /// </summary>
    /// <returns></returns>
    private IEnumerator GetMyList()
    {
        yield return Coroutine.WaitForSeconds(10);
    }

    #endregion
}
